package com.xyh.service.impl;

import com.xyh.entity.YxcUser;
import com.xyh.mapper.YxcLoginMapper;
import com.xyh.service.YxcLoginService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class YxcLoginServiceImpl implements YxcLoginService {

    @Resource
    private YxcLoginMapper yxcLoginMapper;

    @Override
    public int insertNewLogin(String login_telephone, String login_password) {
        return yxcLoginMapper.insertNewLogin(login_telephone,login_password);
    }

    @Override
    public int updateYxcLogin(YxcUser yxcUser) {
        return yxcLoginMapper.updateYxcLogin(yxcUser);
    }

    @Override
    public String selectPwdByPhone(String login_telephone) {
        return yxcLoginMapper.selectPwdByPhone(login_telephone);
    }
}
